package com.dems.dao.mapper.la;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.dems.dao.dataobject.DeptStaff;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DeptStaffMapper {
    int deleteByPrimaryKey(Long id);

    int insert(DeptStaff record);

    int insertSelective(DeptStaff record);

    DeptStaff selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(DeptStaff record);

    int updateByPrimaryKey(DeptStaff record);

    List<DeptStaff> selectByDeptId(@Param("deptId") Long deptId);

    int insertBatch(@Param("deptStaffList") List<DeptStaff> deptStaffList);

    List<DeptStaff> selectByUserIdList(@Param("userIdList") List<String> userIdList);

    List<DeptStaff> selectByDeptIdList(@Param("deptIdList") List<Long> collect);

    Page<DeptStaff> selectPage(Page<DeptStaff> page,
                    @Param("supervisorIds") String supervisorIds,
                    @Param("name") String name,
                    @Param("phoneNo") String phoneNo,
                    @Param("roleCodeList") List<String> roleCodeList,
                    @Param("supervisorIdsList") List<String> supervisorIdsList);
}